package com.ruoyi.zhgd.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMax;
import java.math.BigDecimal;

@Data
public class AsphaltRequiresRefDto {

    @Length(message = "关联id长度不能超过{max}个字",max = 36)
    private String asphaltId;
    /*
     *最大值
     */
    @DecimalMax(message = "最大值不能超过{value}个字",value = "9999999999.9")
    private BigDecimal max;

    /*
     *最小值
     */
    @DecimalMax(message = "最小值不能超过{value}个字",value = "9999999999.9")
    private BigDecimal min;

    /*
     *温度
     */
    @DecimalMax(value = "9999999999.9",message = "温度不能超过{value}")
    private BigDecimal temperature;

    /*
     *等级
     */
    private String level;

    /*
     *类型
     */
    @Length(message = "类型不能超过{max}个字",max = 10)
    private String type;

}
